Categorification

The basic idea(2)
Categorification of arithmetic(1)
  • Categorification of arithmetic using the category FinSet

  • Replace natural numbers with arbtirary sets of that cardinality.

  • Replace \(+\) with coproduct.

  • This is good categorification because, with replacements, arithmatic truths are preserved: \(\bar{5}\sqcup \bar{3} \cong \bar{8}\)

A reflection on wiring diagrams(1)

To do...

Monoidal categories(6)
SMC(1)

A rough definition of a symmetric monoidal structure on a category \(\mathcal{C}\)

  • Two additional constituents

    1. An object \(I \in Ob(\mathcal{C})\) called the monoidal unit

    2. A functor \(\mathcal{C}\times \mathcal{C}\xrightarrow{\otimes}\mathcal{C}\) called the monoidal product

  • Subject to the well-behaved, natural isomorphisms

    1. \(I \otimes c \overset{\lambda_c}\cong c\)

    2. \(c \otimes I \overset{\rho_c}\cong c\)

    3. \((c \otimes d)\otimes e \overset{\alpha_{c,d,e}}\cong c \otimes (d\otimes e)\)

    4. \(c \otimes d \overset{\sigma_{c,d}}\cong d \otimes c\)

  • A category equipped with these is a symmetric monoidal category

Linked by

Set as SMC(1)
  • Monoidal structure on Set

  • Let \(I\) be any singleton, say \(\{1\}\) and the monoidal product is the cartesian product.

  • This means that \(\times\) is a functor:

    • For any pair of sets in \((S,T) \in Ob(\mathbf{Set}\times\mathbf{Set})\), one obtains a set \(S \times T \in Ob(\mathbf{Set})\).

    • For any pair of morphisms (functions) one obtains a function \((f\times g)\) which works pointwise: \((f\times g)(s,t):=(f(s),g(t))\) which preserves identities and composition.

  • The bookkeeping isomorphisms are obvious in Set

Linked by

Exercise 4-48(1)

Check that monoidal categories generalize monoidal preorders: a monoidal preorder is a monoidal category \((P,I,\otimes)\) where \(P(p,q)\) has at most one element.

Solution(0)

TODO

Exercise 4-50(2)
  • Consider the monoidal category \((\mathbf{Set},1,\times)\) together with the following diagram TODO - NEED TO COPY HERE

  • \(A=B=C=D=F=G=\mathbb{Z}\) and \(E=\mathbb{B}\)

  • \(f_C(a)=|a|\),

  • \(f_D(a)=a*5\),

  • \(g_E(d,b)=d\leq b\)

  • \(g_F(d,b)=d-b\)

  • \(h(c,e)=\text{if }e\text{ then }c\text{ else }1-c\)

  • Suppose the whole diagram defines a function \(A \times B \xrightarrow{q} G \times F\)

  • Answer:

    1. What are \(g_E(5,3)\) and \(g_F(5,3)\)?

    2. What are \(g_E(3,5)\) and \(g_F(3,5)\)?

    3. What is \(h(5,true)\)?

    4. What is \(h(-5,true)\)?

    5. What is \(h(-5,false)\)?

    6. What are \(q_G(-2,3)\) and \(q_F(-2,3)\)?

    7. What are \(q_G(2,3)\) and \(q_F(2,3)\)?

Solution(1)
  1. \(False,\ 2\)

  2. \(True,\ -2\)

  3. \(5\)

  4. \(-5\)

  5. \(6\)

  6. \((2,-13)\) ... \(a\mapsto -2,\ b \mapsto 3,\ c\mapsto 2,\ d\mapsto -10,\ e\mapsto true,\ f\mapsto -13, g \mapsto 2\)

  7. \((-1,7)\) ... \(a\mapsto 2,\ b \mapsto 3,\ c \mapsto 2,\ d\mapsto 10,\ e\mapsto false, f\mapsto 7, g\mapsto -1\)

Categories enriched in a symmetric monoidal category(6)
Enrichment in a SMC(1)

A \(\mathcal{V}\) category (a category enriched in \(\mathcal{V}\)) where \(\mathcal{V}\) is a symmetric monoidal category.

  • Call the category \(\mathcal{X}\). There are four constituents:

    • A collection of objects, \(Ob(\mathcal{X})\)

    • For every pair in \(Ob(\mathcal{X})\) one specifies the hom-object \(X(x,y) \in \mathcal{V}\).

    • For every object, specify a \(I \xrightarrow{id_x}X(x,x) \in \mathcal{V}\) called the identity element

    • For every pair of compatible morphisms, a \(\mathcal{X}(x,y)\otimes\mathcal{X}(y,z)\xrightarrow{;}\mathcal{X}(x,z)\) called the composition morphism.

  • These satisfy the usual associative and unital laws.

Linked by

Exercise 4-52(2)

Recall the example with Set as a symmetric moniodal category. Apply the definition of a \(\mathcal{V}\) category and see if this agrees with the definition of an ordinary category. Is there a subtle difference?

Solution(1)

We’ve replaced the identity morphisms with maps from the monoidal unit, but that is functionally equivalent to ‘just picking one’ given that the initial object is a singleton.

Exercise 4-54(2)

What are identity elements in Lawvere metric spaces (Cost-categories)? How do we interpret this in terms of distances?

Solution(1)

\(0\) was the monoidal unit - the distance from an object to itself.